package gvo.amazon;

import java.util.ArrayList;

import com.amazonaws.a2s.AmazonA2S;

public class AmazonSearchResult {
	public int totalPages;
	public int totalResults;
	public ArrayList<AmazonResultPage> pages = new ArrayList<AmazonResultPage>();
	public String query;
	public AmazonA2S service;
	public AmazonResultPage getAmazonResultPage(int snr){
		for (AmazonResultPage arp : pages){
			if(arp.snr == snr){
				return arp;
			}
		}
		return null;
	}
	public void showSearchResult(){
		System.out.println("SearchResult");
		System.out.println("************");
		for(AmazonResultPage arp : pages){
			arp.showInfo();
		}
	}
}
